﻿using SMDB_Connect.SMDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GS_OM.SMHandler
{
    /// <summary>
    /// UpdatePushActiveStatusHandler 的摘要说明
    /// </summary>
    public class UpdatePushActiveStatusHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string ID = context.Request.QueryString["id"];
            SMDB_Mgr Mgr = new SMDB_Mgr();
            int num = Mgr.UpdatePushActiveStatus(ID, DBOPush.ActiveStatus.Deleted);
            context.Response.Write(num >0 ? "true" : "false");
            context.Response.End();
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}